package com.demo.spring.aop底层演示.demo3;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class Advice1 implements MethodInterceptor {

	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		System.out.println("Advice1.before()");
		// 调用下一个通知或目标
		Object result = invocation.proceed();
		System.out.println("Advice1.after()");
		return result;
	}

}
